import request from '@/utils/request'

// 查询公告列表
export function listFronotice(query) {
  return request({
    url: '/system/fronotice/list',
    method: 'get',
    params: query
  })
}

// 查询公告详细
export function getFronotice(noticeId) {
  return request({
    url: '/system/fronotice/' + noticeId,
    method: 'get'
  })
}

// 新增公告
export function addFronotice(data) {
  return request({
    url: '/system/fronotice',
    method: 'post',
    data: data
  })
}

// 修改公告
export function updateFronotice(data) {
  return request({
    url: '/system/fronotice',
    method: 'put',
    data: data
  })
}

// 删除公告
export function delFronotice(noticeId) {
  return request({
    url: '/system/fronotice/' + noticeId,
    method: 'delete'
  })
}
